import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
import java.io.*;

/**
 *
 * @author byoms23
 */
public class Arrow extends Sprite {
    // Declare constants
    public static final String
            LEFT = "/left.png",
            UP = "/up.png",
            RIGHT = "/right.png",
            DOWN = "/down.png";
    

    // Declare variables and objects of instance
    private String type;
    private long time;
    
    /*
     * 
     */
    public Arrow(String type, long time) throws IOException {
        // Configure Sprite father
        super(Image.createImage(type), 32, 32);
        int[] format = {2, 1, 0, 3};
        setFrameSequence(format);
        this.setRefPixelPosition(this.getWidth() / 2, 0);
        
        // Configure variables and objects of instance
        this.type = type;
        this.time = time;
    }

    /*
     *
     */
    public String getType() {
        return type;
    }

    /*
     *
     */
    public long getTime() {
        return time;
    }
}
